package com.smartmedical.patient.sickcricle.mapper;

import com.smartmedical.patient.sickcricle.vo.SickCircleCommentVo;
import com.smartmedical.patient.sickcricle.vo.SickCircleDetailVo;
import com.smartmedical.patient.sickcricle.vo.SickCirclePublishVo;
import com.smartmedical.patient.sickcricle.vo.SickCircleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface SickCircleMapper {


    List<SickCircleVo> findSickCircleList(@Param("departmentId") Integer departmentId
                                          );

    SickCircleDetailVo findSickCircleInfo(Integer sickCircleId);


    List<SickCircleVo> searchSickCircle(@Param("keyword") String keyword);

    List<SickCircleCommentVo> findSickCircleCommentList(@Param("sickCircleId") Integer sickCircleId
                                                       );

    List<SickCirclePublishVo> findPatientSickCircleList(@Param("patientUserId") Integer patientUserId,
                                                   @Param("page") Integer page,
                                                   @Param("count") Integer count);
}
